package com.order.pojo;

import java.math.BigDecimal;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@ApiModel(value="商品信息表(ProductInfo)对象")
public class ProductInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    @TableId(value = "product_id")
    private String productId;

    @ApiModelProperty(value = "商品名称")
    @TableField("product_name")
    private String productName;

    @ApiModelProperty(value = "单价")
    @TableField("product_price")
    private BigDecimal productPrice;

    @ApiModelProperty(value = "库存")
    @TableField("product_stock")
    private Integer productStock;

    @ApiModelProperty(value = "描述")
    @TableField("product_description")
    private String productDescription;

    @ApiModelProperty(value = "图标")
    @TableField("product_icon")
    private String productIcon;

    @ApiModelProperty(value = "商品状态,0正常1下架")
    @TableField("product_status")
    private Integer productStatus;

    @ApiModelProperty(value = "类目编号")
    @TableField("category_type")
    private Integer categoryType;

    @ApiModelProperty(value = "类目名称")
    @TableField(exist = false)
    private String categoryName;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("update_time")
    private String updateTime;

    @ApiModelProperty(value = "是否删除 0未删除 1已删除")
    @TableField("product_del")
    private Integer productDel;

    public ProductInfo(String productId, Integer productDel) {
        this.productId = productId;
        this.productDel = productDel;
    }
}
